import { request } from '@/http/request/alova'

export interface WorkbenchStatisticsRes {
  pendingCount: null | number,
  completedCount:  null | number,
  processingCount:  null | number,
  totalCount:  null | number,
  todayOrder: Array<any>,
}

export function getWorkbenchStatistics(): Promise<WorkbenchStatisticsRes> {
  return request.Get(`/worker/repair/workbench/statistics`)
}
export function getWorkbenchPerformance() {
  return request.Get(`/worker/repair/workbench/performance`)
}
// export const login = (data: any) => {
//   return request.Post('/worker/auth/login', data)
// }
